UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

52 lines (43 loc) 979 B
import { createStyles } from 'antd-style'; export const useStyles = createStyles(({ cx, css, token }) => ({ // 图片操作按钮的公共样式 generationActionButton: cx( 'generation-actions', css` position: absolute; z-index: 10; inset-block-start: 8px; inset-inline-end: 8px; opacity: 0; transition: opacity 0.1s ${token.motionEaseInOut}; `, ), imageContainer: css` position: relative; overflow: hidden; width: 100%; &:hover .generation-actions { opacity: 1; } `, loadingContent: css` display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: ${token.colorTextTertiary}; `, placeholderContainer: css` position: relative; overflow: hidden; width: 100%; &:hover .generation-actions { opacity: 1; } `, spinIcon: css` color: ${token.colorPrimary}; `, }));